package com.woniuxy.utils;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @Author: ideaAdmin
 * TODO:
 * Date: 2022/2/15:11:58
 * Description:
 */
public class FilterRegiter2 implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        Filter.super.init(filterConfig);
    }


    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        System.out.println("进入过滤器2");


        chain.doFilter(request, response);

        System.out.println("退出过滤器2");
    }


    @Override
    public void destroy() {
        Filter.super.destroy();
    }

}
